<div class="layui-card">
    <div class="layui-card-body">
        <div>
            <form action=""  class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="text" name="keywords" value="{$search.keywords|default=''}" class="layui-input" placeholder="接口名称">
                    </div>
                    <div class="layui-input-inline">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">搜索</button>
                        {if isset($search.keywords)}
                        <a href="javascript:history.go(-1);" class="layui-btn">返回</a>
                        {/if}
                    </div>
                </div>
            </form>
            <form action="{:url('admin/openservice.openserviceapi/delapi')}" class="layui-form delete-form" id="cp-form" method="post">
                <div class="layui-btn-group">
                    <a data-url="{:url('admin/openservice.openserviceapi/importapi')}" class="layui-btn layui-btn-xs ref-node">
                        <i class="layui-icon  layui-icon-release"></i>
                        导入系统api
                    </a>
                    <a data-url="{:url('admin/openservice.openserviceapi/refapi')}" class="layui-btn layui-btn-xs ref-node">
                        <i class="layui-icon layui-icon-refresh "></i>
                        更新系统api
                    </a>
                    <a data-url="{:url('admin/openservice.openserviceapi/clearExceptionapi')}" class="layui-btn layui-btn-xs layui-btn-danger clearExceptionNode">
                        <i class="layui-icon">&#xe640;</i>
                        清楚系统异常api
                    </a>
                    <a href="{:url('admin/openservice.openserviceapi/addapi')}" class="layui-btn layui-btn-xs">
                        <i class="layui-icon layui-icon-addition"></i>
                        添加api
                    </a>
                    <button type="submit" class="layui-btn layui-btn-xs layui-btn-danger">
                        <i class="layui-icon">&#xe640;</i>
                        删除api
                    </button>
                </div>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="10">
                            <input type="checkbox" class="layui-input"  lay-skin="primary" lay-filter="select-all">
                        </th>
                        <th width="40">状态</th>
                        <th width="120">是否可访问</th>
                        <th width="120">是否验证</th>
                        <th width="120">名称</th>
                        <th>标识</th>
                        <th>访问地址</th>
                        <th>调用次数</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="nodeList.data" id='v'}
                    <tr>
                        <td>
                            <input type="checkbox" name="idList[]" class="layui-input" lay-skin="primary" value="{$v.id}">
                        </td>
                        <td align="center" valign="middle">
                            {switch name="$v.status"}
                            {case value="1"}
                            <span class="layui-badge layui-bg-green">正常</span>
                            {/case}
                            {default/}
                            <span class="layui-badge">异常</span>
                            {/switch}
                        </td>
                        <td align="center" valign="middle">
                            {switch name="$v.is_release"}
                            {case value="1"}
                            <span class="layui-badge layui-bg-green">是</span>
                            {/case}
                            {default/}
                            <span class="layui-badge">否</span>
                            {/switch}
                        </td>
                        <td align="center" valign="middle">
                            <input type="checkbox" value="{$v.id}"  data-url="{:url('admin/openservice.openserviceapi/editapi')}"  name="auth" lay-filter="auth" lay-skin="switch" lay-text="是|否" {eq name="$v.auth" value="1" }checked{/eq}>
                        </td>
                        <td>
                            <p class="nodeTitle">{$v.title}</p>
                        </td>
                        <td>{$v.name}</td>
                        <td>{:url($v.name,[],true,true)}</td>
                        <td>{$v.view}</td>
                        <td>
                            <a href="{:url('admin/openservice.openserviceapi/editapi',['id'=>$v['id']])}" class="layui-btn layui-btn-xs layui-btn-danger ">
                                <i class="layui-icon layui-icon-edit"></i>
                                编辑
                            </a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </form>
            {$nodePate|raw}
        </div>
    </div>
</div>